package com.hl.order.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 订单商品表管理对象 order_goods
 * 
 * @author ruoyi
 * @date 2025-08-08
 */
public class OrderGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单商品表id，主键自增 */
    private Long orderGoodsId;

    /** 订单id，关联订单表 */
    @Excel(name = "订单id，关联订单表")
    private Long orderId;

    /** 商品id，关联商品表 */
    @Excel(name = "商品id，关联商品表")
    private Long goodsId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 商品图片URL */
    @Excel(name = "商品图片URL")
    private String goodsImage;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String goodsDesc;

    /** 商品单价 */
    @Excel(name = "商品单价")
    private BigDecimal goodsPrice;

    /** 单个商品打包费 */
    @Excel(name = "单个商品打包费")
    private BigDecimal goodsWrapFees;

    /** 所选购商品数量 */
    @Excel(name = "所选购商品数量")
    private Long goodsNum;

    /** 包装费（单个商品打包费×商品数量） */
    @Excel(name = "包装费", readConverterExp = "单=个商品打包费×商品数量")
    private BigDecimal wrapFees;

    /** 小计（商品单价×商品数量） */
    @Excel(name = "小计", readConverterExp = "商=品单价×商品数量")
    private BigDecimal subtotal;

    public void setOrderGoodsId(Long orderGoodsId) 
    {
        this.orderGoodsId = orderGoodsId;
    }

    public Long getOrderGoodsId() 
    {
        return orderGoodsId;
    }

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }

    public void setGoodsName(String goodsName) 
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName() 
    {
        return goodsName;
    }

    public void setGoodsImage(String goodsImage) 
    {
        this.goodsImage = goodsImage;
    }

    public String getGoodsImage() 
    {
        return goodsImage;
    }

    public void setGoodsDesc(String goodsDesc) 
    {
        this.goodsDesc = goodsDesc;
    }

    public String getGoodsDesc() 
    {
        return goodsDesc;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) 
    {
        this.goodsPrice = goodsPrice;
    }

    public BigDecimal getGoodsPrice() 
    {
        return goodsPrice;
    }

    public void setGoodsWrapFees(BigDecimal goodsWrapFees) 
    {
        this.goodsWrapFees = goodsWrapFees;
    }

    public BigDecimal getGoodsWrapFees() 
    {
        return goodsWrapFees;
    }

    public void setGoodsNum(Long goodsNum) 
    {
        this.goodsNum = goodsNum;
    }

    public Long getGoodsNum() 
    {
        return goodsNum;
    }

    public void setWrapFees(BigDecimal wrapFees) 
    {
        this.wrapFees = wrapFees;
    }

    public BigDecimal getWrapFees() 
    {
        return wrapFees;
    }

    public void setSubtotal(BigDecimal subtotal) 
    {
        this.subtotal = subtotal;
    }

    public BigDecimal getSubtotal() 
    {
        return subtotal;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderGoodsId", getOrderGoodsId())
            .append("orderId", getOrderId())
            .append("goodsId", getGoodsId())
            .append("goodsName", getGoodsName())
            .append("goodsImage", getGoodsImage())
            .append("goodsDesc", getGoodsDesc())
            .append("goodsPrice", getGoodsPrice())
            .append("goodsWrapFees", getGoodsWrapFees())
            .append("goodsNum", getGoodsNum())
            .append("wrapFees", getWrapFees())
            .append("subtotal", getSubtotal())
            .toString();
    }
}
